Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program interfaces #66

Merged
merged 2 commits into from
Feb 8, 2021
Merged

Program interfaces #66

merged 2 commits into from
Feb 8, 2021

Conversation

armaniferrante
Copy link
Member

@armaniferrante armaniferrante commented Feb 5, 2021

Feature summary:

Adds the ability for a program to define and implement generic trait interfaces so that one can make a CPI to another program without knowing anything about the implementing program other than the fact that it implements a trait.

Example + use case.

Adds the ability for the lockup program to specify a release condition where a vesting account can be "realized". I.e., some other program can specify an arbitrary condition upon which the funds in the vesting account can be released. For example, a staking program can reward locked tokens that get awarded only if the user is completely unstaked.

Base automatically changed from armani/sighash to master February 6, 2021 08:28
@armaniferrante armaniferrante force-pushed the armani/realize branch 2 times, most recently from ad1987e to ddd5b1e Compare February 6, 2021 08:39
@armaniferrante armaniferrante changed the title Lockup realization trait Program interfaces Feb 6, 2021
@armaniferrante armaniferrante force-pushed the armani/realize branch 2 times, most recently from db8766c to 59d4812 Compare February 7, 2021 15:50
@armaniferrante armaniferrante marked this pull request as ready for review February 8, 2021 04:56
@armaniferrante armaniferrante merged commit a903d48 into master Feb 8, 2021
@armaniferrante armaniferrante deleted the armani/realize branch February 8, 2021 04:56
@armaniferrante armaniferrante mentioned this pull request Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant